﻿/*
*┌────────────────────────────────────────────────┐
*│　描    述：Ecg                                                   
*│　作    者： (Jxw)                                             
*│　版    本：1.0     
*│　功能描述：                                          
*│　创建时间：2021/4/26 17:13:34                        
*└────────────────────────────────────────────────┘
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{


    /// <summary>
    /// 心电服务entity
    /// </summary>
    public class Ecg
    {
        /// <summary>
        /// 任务号
        /// </summary>
        public string missionId { get; set; }
        /// <summary>
        /// 设备号
        /// </summary>
        public string padCode { get; set; }
    
        /// <summary>
        /// 主键id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 检查编号
        /// </summary>
        public string checknum { get; set; }
        /// <summary>
        /// 患者id
        /// </summary>
        public string pid { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string patientname { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public string ageyear { get; set; }
        /// <summary>
        /// 患者手机
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 性别:1:男,2:女
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        /// 就诊类型，门诊 1，急诊 2，住院 3 ,急救 4，体检 5 , 其他 9
        /// </summary>
        public string visittype { get; set; }
        /// <summary>
        /// 住院号或者门诊号
        /// </summary>
        public string inpno { get; set; }
        /// <summary>
        /// 床号
        /// </summary>
        public string bedno { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        /// 申请机构编码
        /// </summary>
        public string applyorgcode { get; set; }
        /// <summary>
        /// 申请机构
        /// </summary>
        public string applyorg { get; set; }
        /// <summary>
        /// 申请科室编码
        /// </summary>
        public string applydeptid { get; set; }
        /// <summary>
        /// 申请科室
        /// </summary>
        public string applydept { get; set; }
        /// <summary>
        /// 申请医生id
        /// </summary>
        public string applyuserid { get; set; }
        /// <summary>
        /// 申请医生
        /// </summary>
        public string applyuser { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public string applytime { get; set; }
        /// <summary>
        /// 采集科室
        /// </summary>
        public string collectiondeptid { get; set; }
        /// <summary>
        /// 采集科室名称
        /// </summary>
        public string collectiondept { get; set; }
        /// <summary>
        /// 采集人员id
        /// </summary>
        public string collectionuserid { get; set; }
        /// <summary>
        /// 采集人员
        /// </summary>
        public string collectionuser { get; set; }
        /// <summary>
        /// 采集时间
        /// </summary>
        public string collectiontime { get; set; }
        /// <summary>
        /// 数据分类 01：静态12导心电:02:动态长程数据,99:单导胶布贴
        /// </summary>
        public string category { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string createtime { get; set; }
        /// <summary>
        /// 离线数据id
        /// </summary>
        public string offlineid { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 区县
        /// </summary>
        public string area { get; set; }
        /// <summary>
        /// 检查类型编码
        /// </summary>
        public string checkitemcode { get; set; }
        /// <summary>
        /// 检查类型名称
        /// </summary>
        public string checkitemname { get; set; }
        /// <summary>
        /// 患者主索引
        /// </summary>
        public string empi { get; set; }
        /// <summary>
        /// 远程平台数据id
        /// </summary>
        public string remoteid { get; set; }
        /// <summary>
        /// 数据级别
        /// </summary>
        public string level { get; set; }
        /// <summary>
        /// 临床诊断
        /// </summary>
        public string clinical { get; set; }
        /// <summary>
        /// 临床诊断编码
        /// </summary>
        public string clinicalcode { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string datatype { get; set; }
        /// <summary>
        /// 采集参数
        /// </summary>
        public string acquisition { get; set; }
        /// <summary>
        /// 数据文件uri
        /// </summary>
        public string datauri { get; set; }
        /// <summary>
        /// 二进制消息体内容，PDF报告
        /// </summary>
        public string bininfo { get; set; }
        /// <summary>
        /// 数据最后更新时间
        /// </summary>
        public string lastupdatetime { get; set; }
        /// <summary>
        /// 采集设备类型
        /// </summary>
        public string devtype { get; set; }
        /// <summary>
        /// 采集设备编号
        /// </summary>
        public string devno { get; set; }
        /// <summary>
        /// md5
        /// </summary>
        public string md5 { get; set; }
        /// <summary>
        /// 特殊要求
        /// </summary>
        public string specialreq { get; set; }
        /// <summary>
        /// 分析结果
        /// </summary>
        public string analysisresults { get; set; }
        /// <summary>
        ///  心率
        /// </summary>
        public string hr { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string filename { get; set; }
    }

    public class ResItem
    {
        /// <summary>
        /// 设备唯一标识
        /// </summary>
        public string padCode { get; set; }
        /// <summary>
        /// 任务号
        /// </summary>
        public string missionId { get; set; }
        /// <summary>
        /// 患者信息
        /// </summary>
        public PatientInfo patientInfo { get; set; }
        /// <summary>
        /// 体征数据
        /// </summary>
        public PhyInfo phyInfo { get; set; }
        //public string phyInfo { get; set; }


        /// <summary>
        /// 除颤仪数据
        /// </summary>
        public EquipData equipData { get; set; }
        /// <summary>
        /// 心电数据
        /// </summary>
        public List<Ecg> ecg { get; set; }

        /// <summary>
        /// 救治医院top
        /// </summary>
        public List<hospDTO> hospList { get; set; }

    }


    public class DefibrillatorItem
    {
        /// <summary>
        /// 血压
        /// </summary>
        public BloodPress bloodPress { get; set; }
        /// <summary>
        /// 血氧
        /// </summary>
        public string oxygen { get; set; }
        /// <summary>
        /// 脉搏
        /// </summary>
        public string pulse { get; set; }
        /// <summary>
        /// 心率
        /// </summary>
        public string heartRate { get; set; }
        /// <summary>
        /// 心电报告
        /// </summary>
        public string ecgReport { get; set; }
    }

    /// <summary>
    /// 除颤仪数据
    /// </summary>
    public class EquipData
    {
        /// <summary>
        /// 设备唯一标识
        /// </summary>
        public string equipNo { get; set; }
        /// <summary>
        /// 设备类型编码
        /// </summary>
        public string equipType { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipName { get; set; }
        /// <summary>
        /// 任务编号
        /// </summary>
        public string mpi { get; set; }
        /// <summary>
        /// 设备型号
        /// </summary>
        public string equipModel { get; set; }
        /// <summary>
        /// 除颤仪数据
        /// </summary>
        public List<DefibrillatorItem> defibrillator { get; set; }
    }


    //public class Ack
    //{
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public int code { get; set; }
    //    /// <summary>
    //    /// 处理成功
    //    /// </summary>
    //    public string text { get; set; }
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public List<ResItem> res { get; set; }
    //}

    //public class ECGRoot
    //{
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public string msgId { get; set; }
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public string creationTime { get; set; }
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public string targetMsgId { get; set; }
    //    /// <summary>
    //    /// 
    //    /// </summary>
    //    public Ack ack { get; set; }
    //}



}
